import Vue from 'vue';
// 引入mint ui
import MintUI from 'mint-ui';
import 'mint-ui/lib/style.css';
// 引入mui
import './lib/mui/css/mui.min.css';
import './lib/mui/css/icons-extra.css';
// 全局注册axios
import axios from 'axios';
axios.defaults.baseURL = 'http://localhost:3000';
Vue.prototype.axios = axios;
// 引入moment
import moment from 'moment';
Vue.filter('dateFormat', (dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') => {
  return moment(dataStr).format(pattern);
});
// 引入缩略图
import VuePreview from 'vue-preview';
Vue.use(VuePreview);
// 引入vuex
import store from './store.js';
// 引入路由
import VueRouter from 'vue-router';
Vue.use(VueRouter);
import router from './router.js';
// 导入自己的App的组件
import App from './App.vue';

Vue.use(MintUI);

let vm = new Vue({
  el: '#app',
  render: c => c(App),
  router,
  store
});
